home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimppalette" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimppalette</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimppalette</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-get-foreground">gimp_palette_get_foreground</link> (<link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-get-background">gimp_palette_get_background</link> (<link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-set-foreground">gimp_palette_set_foreground</link> (<link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-set-background">gimp_palette_set_background</link> (<link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-set-default-colors">gimp_palette_set_default_colors</link> (void);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-swap-colors">gimp_palette_swap_colors</link> (void);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-palette-refresh">gimp_palette_refresh</link> (void);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-palette-get-foreground">gimp_palette_get_foreground ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_get_foreground (<link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);</programlisting>
- <para>
- Get the current GIMP foreground color.
- </para>
- <para>
- This procedure retrieves the current GIMP foreground color. The
- foreground color is used in a variety of tools such as paint tools,
- blending, and bucket fill.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The foreground color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-get-background">gimp_palette_get_background ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_get_background (<link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);</programlisting>
- <para>
- Get the current GIMP background color.
- </para>
- <para>
- This procedure retrieves the current GIMP background color. The
- background color is used in a variety of tools such as blending,
- erasing (with non-alpha images), and image filling.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The background color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-set-foreground">gimp_palette_set_foreground ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_set_foreground (<link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);</programlisting>
- <para>
- Set the current GIMP foreground color.
- </para>
- <para>
- This procedure sets the current GIMP foreground color. After this is
- set, operations which use foreground such as paint tools, blending,
- and bucket fill will use the new value.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The foreground color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-set-background">gimp_palette_set_background ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_set_background (<link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);</programlisting>
- <para>
- Set the current GIMP background color.
- </para>
- <para>
- This procedure sets the current GIMP background color. After this is
- set, operations which use background such as blending, filling
- images, clearing, and erasing (in non-alpha images) will use the new
- value.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The background color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-set-default-colors">gimp_palette_set_default_colors ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_set_default_colors (void);</programlisting>
- <para>
- Set the current GIMP foreground and background colors to black and
- white.
- </para>
- <para>
- This procedure sets the current GIMP foreground and background
- colors to their initial default values, black and white.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-swap-colors">gimp_palette_swap_colors ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_swap_colors (void);</programlisting>
- <para>
- Swap the current GIMP foreground and background colors.
- </para>
- <para>
- This procedure swaps the current GIMP foreground and background
- colors, so that the new foreground color becomes the old background
- color and vice versa.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-palette-refresh">gimp_palette_refresh ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_palette_refresh (void);</programlisting>
- <para>
- Refreshes current palettes.
- </para>
- <para>
- This procedure incorporates all palettes currently in the users
- palette path.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-